package com.oa.desktop.news.news_label.dao;

import com.oa.commons.beans.NewsLabel;
import com.oa.commons.ov.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface INewsLabelDao {

    int selectAllNewsLabelCount();

    List<NewsLabel> selectAllNewsLabel(Page<NewsLabel> page);

    List<NewsLabel> findAllNewsLabel();

    public void deleteNewsLabel(int id);

    public void addNewsLabel(NewsLabel newsLabel);

    List<NewsLabel> findNewsLabelById(int id);

    public void updateNewsLabel(@Param("newsLabel") NewsLabel newsLabel,@Param("id") int id);

    int selectNewsLabelCount(int id);

    List<NewsLabel> selectNewsLabel(@Param("page") Page<NewsLabel> page,@Param("id") int id);
}
